home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / scripttempl / w65.sc < prev    next >
Encoding:
Text File  |  1996-07-04  |  772 b   |  59 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  3. OUTPUT_ARCH(${ARCH})
  4.  
  5. MEMORY {
  6.     ram   : o = 0x1000, l = 512k
  7.     }
  8.  
  9. SECTIONS                 
  10. {                     
  11. .text :
  12.     {                     
  13.       *(.text)                 
  14.       *(.strings)
  15.         ${RELOCATING+ _etext = . ; }
  16.     } ${RELOCATING+ > ram}
  17.  
  18.  
  19. .tors   : {
  20.     ___ctors = . ;
  21.     *(.ctors)
  22.     ___ctors_end = . ;
  23.     ___dtors = . ;
  24.     *(.dtors)
  25.     ___dtors_end = . ;
  26. }  ${RELOCATING+ > ram}
  27.  
  28. .data  :
  29.     {
  30.     *(.data)
  31.     ${RELOCATING+ _edata = . ; }
  32.     } ${RELOCATING+ > ram}
  33. .bss  :
  34.     {
  35.     ${RELOCATING+ _bss_start = . ; }
  36.     *(.bss)
  37.     *(COMMON)
  38.     ${RELOCATING+ _end = . ;  }
  39.     } ${RELOCATING+ >ram}
  40. .stack ${RELOCATING+ 0x30000 }  : 
  41.     {
  42.     ${RELOCATING+ _stack = . ; }
  43.     *(.stack)
  44.     } ${RELOCATING+ > ram}
  45.   .stab  . (NOLOAD) : 
  46.   {
  47.     [ .stab ]
  48.   }
  49.   .stabstr  . (NOLOAD) :
  50.   {
  51.     [ .stabstr ]
  52.   }
  53. }
  54. EOF
  55.  
  56.  
  57.  
  58.  
  59.